<div id="main-col-small" class="div">
	<div class="mainColInner">
		<div class="subPageHeader">
			<h1><?=Yii::t('users','login');?></h1>
		</div>
<?php 
$form = $this->beginWidget('CActiveForm', array(
			'id'=>'UserLoginForm',
			'method'=>'post',
//			'enableAjaxValidation'=>true,
			'htmlOptions'=>array('class'=>'users')));
?>
		<div class="over-hidden mg-b-10">
			<?php echo $form->labelEx($model,'usernameOrEmail');?>
			<div class="float-left">
				<div class="input text required">
				<?php echo $form->textField($model,'usernameOrEmail');?>
				<?php echo $form->error($model,'usernameOrEmail'); ?>
				</div>
			</div>
   		</div>			
    	<div class="over-hidden mg-b-10">
    		<?php echo $form->labelEx($model,'password');?>
    		<div class="float-left">
    			<div class="input password required">
	    		<?php echo $form->passwordField($model,'password');?>
	    		<?php echo $form->error($model,'password'); ?>
	    		</div>
		    	<div>
		    		<?php echo CHtml::link(Yii::t('users','forgot password'),$this->createUrl('users/forgetPw'));?>
		    	</div>
	    	</div>
    	</div>
   		<div class="over-hidden mg-b-10">
	   		<?php echo CHtml::label(null, null)?>
	   		<div class="float-left">
		   		<div class="input checkbox">
		   		<?php echo $form->checkBox($model,'rememberMe');?>
		   		<?php echo $model->getAttributeLabel('rememberMe');?>
		   		<?php echo $form->error($model,'rememberMe');?>
		   		</div>
   			</div>
		</div>
  		<div class="over-hidden mg-b-10">
  			<?php echo CHtml::label(null, null, array('class'=>'lefe'))?>
  			<div class="float-left">
  				<div class="submit">
  				<?php  echo CHtml::submitButton(Yii::t('users','submit login'),array('class'=>'btn btn_m')); ?>
  				</div>
  			</div>
 		</div>
 			<?php $this->endWidget(); ?>
	</div>
</div>
<div id="side-col" class="float-right">
<?php $this->widget('TagRegister')?>
</div>
